﻿<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<Framework.Mvc.ViewModels.ArticleViewModel>" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>大喜结婚网后台管理-文章创建</title>
    <link href="../../Content/Admin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="/Scripts/xheditor-zh-cn.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#webeditor').xheditor();
            var editor = $('#webeditor').xheditor({ tools: 'full', skin: 'default' });
            editor.focus();
            editor.settings.upImgUrl = "\\File\\XheEditorUpload"
            editor.settings.upImgExt = 'jpg,png,gif,ico';
        });
    </script>
</head>
<body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="57" background="../../images/main_03.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="353" height="57">
                                        <img src="../../images/main_01.gif" width="327" height="57" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td width="281" valign="bottom">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="33" height="27">
                                                    <img src="../../images/main_05.gif" width="33" height="27" />
                                                </td>
                                                <td width="248" background="../../images/main_06.gif">
                                                    <table width="225" border="0" align="center" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td height="17">
                                                                <div align="right">
                                                                    <a href="#">
                                                                        <img src="../../images/pass.gif" width="69" height="17" border="0" /></a></div>
                                                            </td>
                                                            <td>
                                                                <div align="right">
                                                                    <a href="#">
                                                                        <img src="../../images/user.gif" width="69" height="17" border="0" /></a></div>
                                                            </td>
                                                            <td>
                                                                <div align="right">
                                                                    <a href="#">
                                                                        <img src="../../images/quit.gif" width="69" height="17" border="0" /></a></div>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="40" background="../../images/main_10.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="96" height="40" background="../../images/main_07.gif">
                                        &nbsp;
                                    </td>
                                    <td>
                                        <table height="35" border="0" cellpadding="3" cellspacing="0" id="menutable" style="">
                                            <tr align="center" height="25">
                                                <td width="75" align="center" style="width: 76px; valign: middle; cursor: hand; font-size: 14px;
                                                    color: white; background-repeat: no-repeat; background-position: center;" onclick="changeMenu(this,'life/2.html','nr/xx/1.html')"
                                                    onmouseover="window.status='001'">
                                                    <span class="STYLE2 STYLE8">商品管理</span>
                                                </td>
                                                <td width="7px">
                                                </td>
                                                <td onmouseover="window.status='001'" onclick="changeMenu(this,'life/2.html','nr/xx/1.html')"
                                                    style="background-repeat: no-repeat; background-position: center; width: 76px;
                                                    valign: middle; cursor: hand; font-size: 14px; color: white;">
                                                    <span class="STYLE2 STYLE8">系统设置</span>
                                                </td>
                                                <td width="7px">
                                                </td>
                                                <td onmouseover="window.status='001'" onclick="changeMenu(this,'life/2.html','nr/xx/1.html')"
                                                    style="width: 76px; valign: middle; cursor: hand; font-size: 14px; color: white;
                                                    background-repeat: no-repeat; background-position: center;">
                                                    <span class="STYLE2 STYLE8">会员管理</span>
                                                </td>
                                                <td width="7px">
                                                </td>
                                                <td onmouseover="window.status='002'" onclick="changeMenu(this,'life/3.html','nr/fl/1.html')"
                                                    style="width: 76px; valign: middle; cursor: hand; font-size: 14px; color: white;
                                                    background-repeat: no-repeat; background-position: center;">
                                                    <span class="STYLE2 STYLE8">订单</span>
                                                </td>
                                                <td width="7px">
                                                </td>
                                                <td onmouseover="window.status='003'" onclick="changeMenu(this,'life/4.html','nr/gg/1.html')"
                                                    style="width: 76px; valign: middle; cursor: hand; font-size: 14px; color: white;
                                                    background-repeat: no-repeat; background-position: center;">
                                                    <span class="STYLE2 STYLE8">优惠促销 </span>
                                                </td>
                                                <td width="7px">
                                                </td>
                                                <td onmouseover="window.status='004'" onclick="changeMenu(this,'life/5.html','nr/tb/1.html')"
                                                    style="width: 76px; valign: middle; cursor: hand; font-size: 14px; color: white;
                                                    background-repeat: no-repeat; background-position: center;">
                                                    <span class="STYLE2 STYLE8">统计分析 </span>
                                                </td>
                                                <td width="7px">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="248">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" background="../../images/main_31.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="8" height="30">
                                        <img src="../../images/main_28.gif" width="8" height="30" />
                                    </td>
                                    <td width="147" background="../../images/main_29.gif">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="24%">
                                                    &nbsp;
                                                </td>
                                                <td width="43%" height="20" valign="bottom" class="STYLE1">
                                                    管理菜单
                                                </td>
                                                <td width="33%">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="39">
                                        <img src="../../images/main_30.gif" width="39" height="30" />
                                    </td>
                                    <td>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td height="20" valign="bottom">
                                                    <span class="STYLE1">当前登录用户：admin &nbsp;用户角色：管理员</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="17">
                                        <img src="../../images/main_32.gif" width="17" height="30" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="100%" height="80%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="8" background="../../images/main_28.gif">
                &nbsp;
            </td>
            <td width="147" valign="top">
                <table width="147" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="23" background="../../images/main_34.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="9%">
                                        &nbsp;
                                    </td>
                                    <td width="83%">
                                        <div align="center" class="STYLE5">
                                            系统管理</div>
                                    </td>
                                    <td width="8%">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <div align="center">
                                <table width="82%" border="0" align="center" cellpadding="0" cellspacing="7">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_52.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="23" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <frame name="main" marginwidth="0" marginheight="0" src="right.html">
                                                                    <%: Html.ActionLink("商家管理", "List","AgencyManager") %>
                                                                    </FRAMESET>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_46.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="23" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("分类管理", "ArticleCategory", "Admin")%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_50.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="23" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("文章管理","List", "Article") %>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_40.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="25" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("广告管理", "List", "Advertising") %>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_40.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="25" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("友情链接管理", "List", "FriendlyLink")%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="38">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="33" height="28">
                                                        <img src="../../images/main_40.gif" width="28" height="28" alt="" />
                                                    </td>
                                                    <td width="99">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td height="25" class="STYLE4" style="cursor: hand" onmouseover="this.style.backgroundImage='url(images/tab_bg.gif)';this.style.borderStyle='solid';this.style.borderWidth='1';borderColor='#adb9c2'; "
                                                                    onmouseout="this.style.backgroundImage='url()';this.style.borderStyle='none'">
                                                                    <%: Html.ActionLink("退出登陆", "Logoff", "Home")%>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td height="19" background="../../images/main_69.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <div align="center">
                                            <span class="STYLE4">大喜结婚网</span></div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="10" bgcolor="#add2da">
                &nbsp;
            </td>
            <td valign="top">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="24" class="STYLEb" style="line-height: 24px;">
                            &nbsp;<span class="STYLE10">添加新闻</span>
                        </td>
                    </tr>
                    <tr>
                        <td height="15">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="3" bgcolor="#FFFFFF">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#a8c7ce">
                                <tr>
                                    <td height="25" colspan="2" bgcolor="d3eaef" class="STYLE10" style="font-weight: bold;">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="16%" height="20" align="right" bgcolor="#FFFFFF" class="STYLE10">
                                        标 题：
                                    </td>
                                    <td height="20" align="center" bgcolor="#FFFFFF" class="STYLE19">
                                        <div align="left">
                                            <% using (Html.BeginForm())
                                               {
                                            %>
                                            <%: Html.ValidationSummary(true) %>
                                            <%: Html.TextBoxFor(m => m.Instance.Name, new { name = "textfield2", id = "textfield2", size = "65", style = "border: #CCCCCC 1px solid;" })%>
                                        </div>
                                        <div align="center" class="STYLE21">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" align="right" bgcolor="#FFFFFF">
                                        <div align="right">
                                            <span class="STYLE10">浏览量：</span></div>
                                    </td>
                                    <td height="20" align="center" bgcolor="#FFFFFF" class="STYLE19">
                                        <div align="left">
                                            <%: Html.TextBoxFor(m => m.Instance.Hits, new { name = "textfield2", id = "textfield2", size = "30", style = "border: #CCCCCC 1px solid;" })%>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" align="right" bgcolor="#FFFFFF">
                                        <div align="right">
                                            <span class="STYLE10">文章分类：</span></div>
                                    </td>
                                    <td height="20" align="left" bgcolor="#FFFFFF" class="STYLE19">
                                        <%:Html.DropDownListFor(m => m.CategoryId, this.Model.Categories.Select(s => new SelectListItem { Text = s.Name, Value = s.Id.ToString() }))%>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" align="right" bgcolor="#FFFFFF">
                                        <div align="right">
                                            <span class="STYLE10">文章作者：</span></div>
                                    </td>
                                    <td height="20" align="center" bgcolor="#FFFFFF" class="STYLE19">
                                        <div align="left">
                                            <%: Html.TextBoxFor(m => m.Instance.Author, new { name = "textfield2", id = "textfield2", size = "30", style = "border: #CCCCCC 1px solid;" })%>
                                        </div>
                                        <div align="center">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" align="right" bgcolor="#FFFFFF">
                                        <div align="right" class="STYLE10">
                                            文章是否置顶：
                                        </div>
                                    </td>
                                    <td height="20" align="left" valign="bottom" bgcolor="#FFFFFF" class="STYLE19">
                                        <%: Html.RadioButtonFor(m => m.Instance.IsTopmost, true) %><span class="STYLE10">是
                                            <%: Html.RadioButtonFor(m => m.Instance.IsTopmost, false) %>
                                            否</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" align="right" bgcolor="#FFFFFF">
                                        <div align="right">
                                            <span class="STYLE10">详细内容：</span></div>
                                    </td>
                                    <td height="20" align="left" bgcolor="#FFFFFF" class="STYLE19">
                                        <%= this.Html.TextAreaFor(model => model.Instance.Content, new { id = "webeditor", rows = "20", cols = "63" })%>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="20" align="right" bgcolor="#FFFFFF">
                                        <div align="right">
                                            <span class="STYLE10">内容分页方式：</span></div>
                                    </td>
                                    <td height="20" align="left" bgcolor="#FFFFFF" class="STYLE19">
                                        <select name="select2">
                                            <option value="1">不分页</option>
                                            <option value="2">分页</option>
                                        </select>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="30">
                            <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
                            </table>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#D3EAEF">
                                <tr>
                                    <td width="45%" height="35" align="right" class="STYLE10">
                                        <input type="submit" name="Submit" value="创建文章" style="width: 70px; height: 24px;" />
                                    </td>
                                    <td width="1%" align="left" class="STYLE10">
                                        &nbsp;
                                    </td>
                                    <td width="54%" align="left" class="STYLE10">
                                        <input type="reset" name="Submit2" value="重 置" style="width: 70px; height: 24px;" />
                                        <% 
                                               }
                                        %>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="8" bgcolor="#353c44">
                &nbsp;
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td background="../../images/main_71.gif" style="height: 11px; table-layout: fixed"
                width="165" height="11">
                &nbsp;
            </td>
            <td background="../../images/main_72.gif" style="height: 11px; table-layout: fixed">
                &nbsp;
            </td>
            <td background="../../images/main_74.gif" style="height: 11px; table-layout: fixed"
                width="17">
                &nbsp;
            </td>
        </tr>
    </table>
</body>
</html>
